package com.jinxin.platform.cdinfogo.controller;

import com.jinxin.platform.base.common.pojo.JsonResult;
import com.jinxin.platform.cdinfogo.pojo.domain.CdinfogoDc;
import com.jinxin.platform.cdinfogo.service.CdinfogoDcService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * (CdinfogoDc)表控制层
 *
 * @author zhangpeng
 * @since 2021-06-28 17:23:35
 */
@RestController
@RequestMapping("cdinfogoDc")
public class CdinfogoDcController {
    /**
     * 服务对象
     */
    @Resource
    private CdinfogoDcService cdinfogoDcService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public JsonResult selectOne(String id) {
        return this.cdinfogoDcService.queryById(id);
    }

}